

// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   d0.java

package com.zelix;

import java.awt.*;

// Referenced classes of package com.zelix:
//            f0, j0, k0

class d0
    implements k0
{

    private String a;
    private Component b;
    private j0 c;
    private f0 d[];
    private Integer e[];
    private Dimension f;
    private Point g;
    private int h;
    private int i;
    private f0 j[];
    private static String z[];

    d0(String s, Component component, j0 j0_1)
    {
        d = new f0[10];
        e = new Integer[10];
        a = s;
        b = component;
        c = j0_1;
    }

    String a(String s, String s1)
    {
        int k = j0.d(s);
        d[k] = new f0(c, s1);
        return null;
    }

    boolean a()
    {
        int l = j0.q;
        if(j != null) goto _L2; else goto _L1
_L1:
        int k;
        j = new f0[10];
        System.arraycopy(d, 0, j, 0, 10);
        k = 0;
        if(l == 0) goto _L4; else goto _L3
_L3:
        f0 f0_1;
label0:
        {
label1:
            {
                f0_1 = j[k];
                if(f0_1 == null || f0_1.j() && l == 0)
                    continue; /* Loop/switch isn't completed */
                if(f0_1.d())
                {
                    j[k] = null;
                    if(l == 0)
                        continue; /* Loop/switch isn't completed */
                }
                if(!f0_1.e())
                    break label0;
                if(f0_1.h() == 5)
                {
                    h = f0_1.g();
                    if(l == 0)
                        break label1;
                }
                i = f0_1.g();
            }
            j[k] = null;
            if(l == 0)
                continue; /* Loop/switch isn't completed */
        }
        boolean flag;
        if(f0_1.f())
            flag = f0_1.a(true);
        k++;
_L4:
        if(k < 10) goto _L3; else goto _L2
_L2:
        k = 0;
        if(l == 0) goto _L6; else goto _L5
_L5:
        k = 1;
_L6:
        if(!a(false, j))
            return k;
        if(true) goto _L5; else goto _L7
_L7:
    }

    int b()
    {
        return i;
    }

    Point c()
    {
        return new Point(e[5].intValue(), e[4].intValue());
    }

    Dimension d()
    {
        return new Dimension(e[0].intValue(), e[1].intValue());
    }

    int a(int k)
    {
        if(k == 10)
        {
            int l = b.getPreferredSize().width;
            return l;
        }
        if(k == 11)
            return b.getPreferredSize().height;
        else
            return e[k].intValue();
    }

    int e()
    {
        return h;
    }

    Point f()
    {
        return new Point(e[3].intValue(), e[2].intValue());
    }

    boolean g()
    {
        return e[0] != null && e[1] != null && e[3] != null && e[2] != null;
    }

    String h()
    {
        int k;
        int l;
        l = j0.q;
        f = null;
        g = null;
        k = 0;
        if(l == 0) goto _L2; else goto _L1
_L1:
        f0 f0_1 = d[k];
        if(f0_1 != null)
        {
            String s = f0_1.i();
            if(s != null)
                return s;
        }
        k++;
_L2:
        if(k >= 10)
            return null;
        if(true) goto _L1; else goto _L3
_L3:
    }

    void i()
    {
        int k;
        int i1;
        i1 = j0.q;
        f = null;
        g = null;
        k = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        e[k] = null;
        k++;
_L2:
        if(k < 10) goto _L1; else goto _L3
_L3:
        int l = 0;
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        f0 f0_1 = d[l];
        if(f0_1 != null)
            f0_1.b();
        l++;
_L5:
        if(l >= 10)
            return;
        if(true) goto _L4; else goto _L6
_L6:
    }

    boolean b(int k)
    {
        if(k == 10 || k == 11)
            return true;
        Integer integer = e[k];
        return integer != null;
    }

    boolean a(boolean flag)
    {
        int k;
        int l;
        l = j0.q;
        k = 0;
        if(l == 0) goto _L2; else goto _L1
_L1:
        f0 f0_1 = d[k];
        if(f0_1 != null && !f0_1.a(flag))
            return false;
        k++;
_L2:
        if(k >= 10)
            return true;
        if(true) goto _L1; else goto _L3
_L3:
    }

    boolean b(boolean flag)
    {
        return a(flag, d);
    }

    boolean a(boolean flag, f0 af0[])
    {
        boolean aflag[];
        int k;
        int i1;
        i1 = j0.q;
        aflag = new boolean[1];
        k = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        a(k, af0, aflag, flag);
        k++;
_L2:
        if(k < 10) goto _L1; else goto _L3
_L3:
        boolean flag1;
        boolean flag2;
        flag1 = false;
        flag2 = true;
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        boolean aflag1[];
        int l;
        aflag1 = new boolean[1];
        l = 0;
        if(i1 == 0) goto _L7; else goto _L6
_L6:
        b(l, af0, aflag1, flag);
        l++;
_L7:
        if(l < 8) goto _L6; else goto _L8
_L8:
        flag2 = aflag1[0];
        flag1 = flag2 ? true : flag1;
_L5:
        if(!flag2)
            return aflag[0] || flag1;
        if(true) goto _L4; else goto _L9
_L9:
    }

    private void a(int k, f0 af0[], boolean aflag[], boolean flag)
    {
        if(e[k] == null)
        {
            f0 f0_1 = af0[k];
            if(f0_1 != null && f0_1.a(flag))
            {
                e[k] = new Integer(f0_1.a());
                aflag[0] = true;
            }
        }
    }

    private void b(int k, f0 af0[], boolean aflag[], boolean flag)
    {
        int l;
label0:
        {
            int k2 = j0.q;
            if(af0[k] != null || e[k] != null)
                return;
            l = 0x80000000;
            switch(k)
            {
            default:
                break;

            case 0: // '\0'
                if(af0[3] != null && af0[5] != null)
                {
                    if(e[3] == null || e[5] == null)
                        break label0;
                    l = e[5].intValue() - e[3].intValue();
                    if(k2 == 0)
                        break label0;
                }
                if(af0[3] != null && af0[6] != null)
                {
                    if(e[3] == null || e[6] == null)
                        break label0;
                    l = (e[6].intValue() - e[3].intValue()) * 2;
                    if(k2 == 0)
                        break label0;
                }
                if(af0[6] != null && af0[5] != null)
                {
                    if(e[6] == null || e[5] == null)
                        break label0;
                    l = (e[5].intValue() - e[6].intValue()) * 2;
                    if(k2 == 0)
                        break label0;
                }
                l = b.getPreferredSize().width;
                f0 f0_1 = d[8];
                if(f0_1 == null)
                    break label0;
                l = Math.max(l, f0_1.a());
                if(k2 == 0)
                    break label0;
                // fall through

            case 1: // '\001'
                if(af0[4] != null && af0[2] != null)
                {
                    if(e[4] == null || e[2] == null)
                        break label0;
                    l = e[4].intValue() - e[2].intValue();
                    if(k2 == 0)
                        break label0;
                }
                if(af0[2] != null && af0[7] != null)
                {
                    if(e[7] == null || e[2] == null)
                        break label0;
                    l = (e[7].intValue() - e[2].intValue()) * 2;
                    if(k2 == 0)
                        break label0;
                }
                if(af0[7] != null && af0[4] != null)
                {
                    if(e[7] == null || e[4] == null)
                        break label0;
                    l = (e[4].intValue() - e[7].intValue()) * 2;
                    if(k2 == 0)
                        break label0;
                }
                l = b.getPreferredSize().height;
                f0 f0_2 = d[9];
                if(f0_2 == null)
                    break label0;
                l = Math.max(l, f0_2.a());
                if(k2 == 0)
                    break label0;
                // fall through

            case 2: // '\002'
                if(af0[7] == null && af0[4] == null)
                {
                    l = 0;
                    if(k2 == 0)
                        break label0;
                }
                if(e[1] == null)
                    return;
                int i1 = e[1].intValue();
                if(e[4] != null)
                {
                    l = e[4].intValue() - i1;
                    if(k2 == 0)
                        break label0;
                }
                if(e[7] == null)
                    break label0;
                l = e[7].intValue() - i1 / 2;
                if(k2 == 0)
                    break label0;
                // fall through

            case 3: // '\003'
                if(af0[6] == null && af0[5] == null)
                {
                    l = 0;
                    if(k2 == 0)
                        break label0;
                }
                if(e[0] == null)
                    return;
                int j1 = e[0].intValue();
                if(e[5] != null)
                {
                    l = e[5].intValue() - j1;
                    if(k2 == 0)
                        break label0;
                }
                if(e[6] == null)
                    break label0;
                l = e[6].intValue() - j1 / 2;
                if(k2 == 0)
                    break label0;
                // fall through

            case 4: // '\004'
                if(e[1] == null)
                    return;
                int k1 = e[1].intValue();
                if(e[2] != null)
                {
                    l = e[2].intValue() + k1;
                    if(k2 == 0)
                        break label0;
                }
                if(e[7] == null)
                    break label0;
                l = e[7].intValue() + k1 / 2;
                if(k2 == 0)
                    break label0;
                // fall through

            case 5: // '\005'
                if(e[0] == null)
                    return;
                int l1 = e[0].intValue();
                if(e[3] != null)
                {
                    l = e[3].intValue() + l1;
                    if(k2 == 0)
                        break label0;
                }
                if(e[6] == null)
                    break label0;
                l = e[6].intValue() + l1 / 2;
                if(k2 == 0)
                    break label0;
                // fall through

            case 7: // '\007'
                if(e[1] == null)
                    return;
                int i2 = e[1].intValue();
                if(e[2] != null)
                {
                    l = e[2].intValue() + i2 / 2;
                    if(k2 == 0)
                        break label0;
                }
                if(e[4] == null)
                    break label0;
                l = e[4].intValue() - i2 / 2;
                if(k2 == 0)
                    break label0;
                // fall through

            case 6: // '\006'
                if(e[0] == null)
                    return;
                int j2 = e[0].intValue();
                if(e[3] != null)
                {
                    l = e[3].intValue() + j2 / 2;
                    if(k2 == 0)
                        break label0;
                }
                if(e[5] != null)
                    l = e[5].intValue() - j2 / 2;
                break;
            }
        }
        if(l != 0x80000000)
        {
            aflag[0] = true;
            e[k] = new Integer(l);
        }
    }

    public String j()
    {
        StringBuffer stringbuffer;
        int k;
        int i1;
        i1 = j0.q;
        stringbuffer = new StringBuffer(a + z[1]);
        k = 0;
        if(i1 == 0) goto _L2; else goto _L1
_L1:
        f0 f0_1 = d[k];
        if(f0_1 != null)
            stringbuffer.append(" " + j0.a(k) + "=" + f0_1.l());
        k++;
_L2:
        if(k < 10) goto _L1; else goto _L3
_L3:
        int l;
        stringbuffer.append(z[0]);
        l = 0;
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        stringbuffer.append(" " + j0.a(l) + "=" + e[l]);
        l++;
_L5:
        if(l >= 10)
        {
            stringbuffer.append("}");
            return stringbuffer.toString();
        }
        if(true) goto _L4; else goto _L6
_L6:
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x5d;
                    break;
                case 1:
                    key =41;
                    break;
                case 2:
                    key =90;
                    break;
                case 3:
                    key =38;
                    break;
                case 4:
                    key =120;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[2];
        as[0] = z(" \t!".toCharArray());
        as[1] = z("}\023z]".toCharArray());
        z = as;
    }
}